package com.lj.graduate.mapper;

import com.lj.graduate.controller.dto.FeedbackDTO;
import com.lj.graduate.entity.Feedback;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ljy
 * @since 2023-03-24
 */
public interface FeedbackMapper extends BaseMapper<Feedback> {
    @Select("select feedback_id,user.user_name,feedback_time,feedback_detail from feedback Inner Join `user` on feedback.user_id = `user`.user_id limit  #{pageNum}, #{pageSize}")
    List<FeedbackDTO> selectPage(Integer pageNum, Integer pageSize);

}
